package com.myspring.aop.eg.xmlaop;

import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestAop {

    @Test
    public void testAdd(){
        ApplicationContext context =
                new ClassPathXmlApplicationContext("beanaop.xml");

        Calculator cal = (Calculator) context.getBean(Calculator.class);
        cal.add(3, 4);
    }
}
